gtkpixelcache: Fix possibly ignoring queued redraw
authorOlivier Brunel <jjk@jjacky.com>
Tue, 5 Nov 2013 18:21:28 +0000 (19:21 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Nov 2013 04:17:14 +0000 (23:17 -0500)
commitfc8be961634a2bf5bd44f1648859f93df62c4f86
tree23c503ff0a56629ba9e1109348e9164c88bf709a
parentfbfeb00545680019c66c71a211ead8def73bf98e
gtkpixelcache: Fix possibly ignoring queued redraw

If a queue_redraw() (invalidating a region, or the whole widget) was
called from the draw() call, it could get ignored if surface_dirty
existed, as it would then be updated, but destroyed right at the end of
the _gtk_pixel_cache_repaint(), leading the next call to
_gtk_pixel_cache_draw() have its call to repaint() be a no-op
(since there's no surface_dirty) and then simply draw from (non
updated) surface.

Signed-off-by: Olivier Brunel <jjk@jjacky.com>
https://bugzilla.gnome.org/show_bug.cgi?id=711545
gtk/gtkpixelcache.c